package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ImcCorpInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "imc_corp_info", catalog = "imcdbserver")
public class ImcCorpInfo implements java.io.Serializable {

	// Fields

	private Integer corpId;
	private String corpName;
	private String corpDate;
	private String passwd;
	private String email;
	private Integer school;
	private Integer corpParentid;
	private short smsPower;
	private String county;
	private String city;
	private String province;
	private String type;
	private Integer usernum;
	private String address;
	private String phone;
	private String contact;
	private Integer review;
	private String created;
	private Integer balance;
	private double tariff;
	private short sync;

	// Constructors

	/** default constructor */
	public ImcCorpInfo() {
	}

	/** minimal constructor */
	public ImcCorpInfo(String county, String city, String province,
			String type, Integer usernum, String address, String phone,
			String contact, Integer review, String created, Integer balance,
			double tariff) {
		this.county = county;
		this.city = city;
		this.province = province;
		this.type = type;
		this.usernum = usernum;
		this.address = address;
		this.phone = phone;
		this.contact = contact;
		this.review = review;
		this.created = created;
		this.balance = balance;
		this.tariff = tariff;
	}

	/** full constructor */
	public ImcCorpInfo(String corpName, String corpDate, String passwd,
			String email, Integer school, Integer corpParentid, short smsPower,
			String county, String city, String province, String type,
			Integer usernum, String address, String phone, String contact,
			Integer review, String created, Integer balance, double tariff,
			short sync) {
		this.corpName = corpName;
		this.corpDate = corpDate;
		this.passwd = passwd;
		this.email = email;
		this.school = school;
		this.corpParentid = corpParentid;
		this.smsPower = smsPower;
		this.county = county;
		this.city = city;
		this.province = province;
		this.type = type;
		this.usernum = usernum;
		this.address = address;
		this.phone = phone;
		this.contact = contact;
		this.review = review;
		this.created = created;
		this.balance = balance;
		this.tariff = tariff;
		this.sync = sync;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "corp_id", unique = true, nullable = false)
	public Integer getCorpId() {
		return this.corpId;
	}

	public void setCorpId(Integer corpId) {
		this.corpId = corpId;
	}

	@Column(name = "corp_name", length = 100)
	public String getCorpName() {
		return this.corpName;
	}

	public void setCorpName(String corpName) {
		this.corpName = corpName;
	}

	@Column(name = "corp_date", length = 20)
	public String getCorpDate() {
		return this.corpDate;
	}

	public void setCorpDate(String corpDate) {
		this.corpDate = corpDate;
	}

	@Column(name = "passwd", length = 20)
	public String getPasswd() {
		return this.passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	@Column(name = "email", length = 20)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "school")
	public Integer getSchool() {
		return this.school;
	}

	public void setSchool(Integer school) {
		this.school = school;
	}

	@Column(name = "CORP_PARENTID")
	public Integer getCorpParentid() {
		return this.corpParentid;
	}

	public void setCorpParentid(Integer corpParentid) {
		this.corpParentid = corpParentid;
	}

	@Column(name = "sms_power")
	public short getSmsPower() {
		return this.smsPower;
	}

	public void setSmsPower(short smsPower) {
		this.smsPower = smsPower;
	}

	@Column(name = "county", nullable = false, length = 20)
	public String getCounty() {
		return this.county;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	@Column(name = "city", nullable = false, length = 20)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "province", nullable = false, length = 20)
	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "type", nullable = false, length = 10)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "usernum", nullable = false)
	public Integer getUsernum() {
		return this.usernum;
	}

	public void setUsernum(Integer usernum) {
		this.usernum = usernum;
	}

	@Column(name = "address", nullable = false, length = 50)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "phone", nullable = false, length = 20)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "contact", nullable = false, length = 10)
	public String getContact() {
		return this.contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	@Column(name = "review", nullable = false)
	public Integer getReview() {
		return this.review;
	}

	public void setReview(Integer review) {
		this.review = review;
	}

	@Column(name = "created", nullable = false, length = 20)
	public String getCreated() {
		return this.created;
	}

	public void setCreated(String created) {
		this.created = created;
	}

	@Column(name = "balance", nullable = false)
	public Integer getBalance() {
		return this.balance;
	}

	public void setBalance(Integer balance) {
		this.balance = balance;
	}

	@Column(name = "tariff", nullable = false, precision = 22, scale = 0)
	public double getTariff() {
		return this.tariff;
	}

	public void setTariff(double tariff) {
		this.tariff = tariff;
	}

	@Column(name = "sync")
	public short getSync() {
		return this.sync;
	}

	public void setSync(short sync) {
		this.sync = sync;
	}

}